from rest_framework import serializers
from story.models import Story, StoryLine, EntryLine

class StorySerializer(serializers.ModelSerializer):
    storyLines = serializers.RelatedField(many=True)
    class Meta:
        model = Story
        fields = ('storyId', 'story_tile', 'type')


class StoryLineSerializer(serializers.ModelSerializer):
    class Meta:
        model = StoryLine
        fields = ('story', 'storyLineId', 'storyLine', 'create_at')
